<%@ page language="java" contentType="text/html; charset=utf-8"  pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<div id="page-content" class="page-content">
		<div class="panel panel-default oparePanel">
			<div class="panel-body">
				<div class="searchBox">
					<input type="text"  value="" placeholder="按名称搜索" class="input_search" />
					<input type="submit"  class="btn_search" />
				</div>
		
				<div class="opare">
					<input type="button"  value="+" class="btn_add" onclick="menuUrl('corp/view', 'corp:add');" />
					<input type="button"  value="删 除" class="btn" />
				</div>
		
			</div>
		</div>
		
		<div class="page-content-wrapper">
				<div class="page-content">
					<!--content-->
					<div class="containerTop">
						<span>基础数据设置</span>
					</div>
 
					<div class="panel charger">
						<form id="updateSysConfForm" class="form-horizontal" onsubmit="return validateCallback(this, sysconf.update())";>
							
							<c:if test="${result.code eq 'SUCCESS' }">
							  <c:forEach items="${result.data}" var ="dic">
							      <c:choose>
							        <c:when test="${dic.keyword eq 'FACE_RATIO'}">
							           <div class="form-group">
											<label  class="col-sm-2 control-label">人脸比对的设定值：</label>
											<div class="col-sm-10 ">
												<div class="pr">
													<input type="text" class="form-control" name="${dic.keyword}" value="${dic.dicValue }" 
													required data-bv-notempty
													pattern="^[\d]+$" data-bv-regexp-message="请输入数字"/>
													<input type="hidden" name="OLD_${dic.keyword}" value="${dic.dicValue }">
													<label class="errorTips"></label>	
												</div>
											</div>
									    </div>
							        </c:when>
							        <c:when test="${dic.keyword eq 'AUTO_EXIT'}">
							           <div class="form-group">
											<label  class="col-sm-2 control-label">无操作自动退出系统的时间：</label>
											<div class="col-sm-10 ">
												<div class="pr">
													<input type="text" class="form-control" name="${dic.keyword}" value="${dic.dicValue }"  
													required data-bv-notempty
													pattern="^[\d]+$" data-bv-regexp-message="请输入数字"/>
													<input type="hidden" name="OLD_${dic.keyword}" value="${dic.dicValue }">
													<label class="errorTips"></label>	
												</div>
											</div>
									    </div>
							        </c:when>
							        <c:when test="${dic.keyword eq 'AGAIN_LOGIN_TIME'}">
							           <div class="form-group">
											<label  class="col-sm-2 control-label">非正常退出登录等待时间：</label>
											<div class="col-sm-10 ">
												<div class="pr">
													<input type="text" class="form-control" name="${dic.keyword}" value="${dic.dicValue }"  
													required data-bv-notempty
													pattern="^[\d]+$" data-bv-regexp-message="请输入数字"/>
													<input type="hidden" name="OLD_${dic.keyword}" value="${dic.dicValue }">
													<label class="errorTips"></label>	
												</div>
											</div>
									    </div>
							        </c:when>
							        
							        <c:when test="${dic.keyword eq 'QUERY_INTERVAL_TIME'}">
							           <div class="form-group">
											<label  class="col-sm-2 control-label">查询本人信用报告的时间间隔：</label>
											<div class="col-sm-10 ">
												<div class="pr">
													<input type="text" class="form-control" name="${dic.keyword}" value="${dic.dicValue }"
													required data-bv-notempty
													pattern="^[\d]+$" data-bv-regexp-message="请输入数字"/>
													<input type="hidden" name="OLD_${dic.keyword}" value="${dic.dicValue }">
													<label class="errorTips"></label>	
												</div>
											</div>
									    </div>
							        </c:when>
							        <c:when test="${dic.keyword eq 'QUERY_INTERVAL_TIME'}">
							           <div class="form-group">
											<label  class="col-sm-2 control-label">查询本人信用报告的时间间隔：</label>
											<div class="col-sm-10 ">
												<div class="pr">
													<input type="text" class="form-control" name="${dic.keyword}" value="${dic.dicValue }"
													required data-bv-notempty
													pattern="^[\d]+$" data-bv-regexp-message="请输入数字"/>
													<input type="hidden" name="OLD_${dic.keyword}" value="${dic.dicValue }">
													<label class="errorTips"></label>	
												</div>
											</div>
									    </div>
							        </c:when>
							        <c:when test="${dic.keyword eq 'NON_WOKR_TIME'}">
							           <div class="form-group">
											<label  class="col-sm-2 control-label">非工作时间段：</label>
											<div class="col-sm-10 ">
												<div class="pr">
													<input type="text" class="form-control" name="${dic.keyword}" value="${dic.dicValue }-${dic.dicField1 }"
													required data-bv-notempty
													pattern="^^(\d){2}(:)(\d){2}(-)(\d){2}(:)(\d){2}$" data-bv-regexp-message="输入的时间格式不正确，格式：hh:mm-hh:mm">
													<input type="hidden" name="OLD_${dic.keyword}" value="${dic.dicValue }-${dic.dicField1 }">
													<label id="noWorkTimeTips" class="errorTips"></label>	
												</div>
											</div>
									    </div>
							        </c:when>
							        <c:when test="${dic.keyword eq 'FORCE_MODIFY_PWD'}">
							           <div class="form-group">
											<label  class="col-sm-2 control-label">是否需要用户强制修改密码：</label>
											<div class="col-sm-10 ">
												<div class="pr">
												
												    <select name="${dic.keyword}" class="form-control">
													   <option value="1" <c:if test="${dic.dicValue eq '1'}">selected="selected"</c:if> >是</option>
													   <option value="0" <c:if test="${dic.dicValue eq '0'}">selected="selected"</c:if>>否</option>
													</select>
												</div>
											</div>
									    </div>
							        </c:when>
							        <c:when test="${dic.keyword eq 'PWD_MODIFY_CYCLE'}">
							           <div class="form-group">
											<label  class="col-sm-2 control-label">密码修改的周期：</label>
											<div class="col-sm-10 ">
												<div class="pr">
													<input type="text" class="form-control" name="${dic.keyword}" value="${dic.dicValue }"
													required data-bv-notempty
													pattern="^[\d]+$" data-bv-regexp-message="请输入数字"/>
													<input type="hidden" name="OLD_${dic.keyword}" value="${dic.dicValue }">
													<label class="errorTips"></label>	
												</div>
											</div>
									    </div>
							        </c:when>
							        <c:when test="${dic.keyword eq 'LOGIN_AUTH_TYPE'}">
							           <div class="form-group">
											<label  class="col-sm-2 control-label">登录验证方式：</label>
											<div class="col-sm-10 ">
												<div class="pr">
													<select name="${dic.keyword}" class="form-control">
													   <option value="1" <c:if test="${dic.dicValue eq '1'}">selected="selected"</c:if> >人脸识别</option>
													   <option value="2" <c:if test="${dic.dicValue eq '2'}">selected="selected"</c:if>>短信验证</option>
													   <option value="3" <c:if test="${dic.dicValue eq '3'}">selected="selected"</c:if>>指纹</option>
													   <option value="4" <c:if test="${dic.dicValue eq '4'}">selected="selected"</c:if>>密码</option>
													</select>
													
													<input type="hidden" name="OLD_${dic.keyword}" value="${dic.dicValue }">
												</div>
											</div>
									    </div>
							        </c:when>
							        <c:when test="${dic.keyword eq 'LOG_CLEAN_CYCLE'}">
							           <div class="form-group">
											<label  class="col-sm-2 control-label">日志清理周期：</label>
											<div class="col-sm-10 ">
												<div class="pr">
													<input type="text" class="form-control" name="${dic.keyword}" value="${dic.dicValue }"
													required data-bv-notempty
													pattern="^[\d]+$" data-bv-regexp-message="请输入数字"/>
													<input type="hidden" name="OLD_${dic.keyword}" value="${dic.dicValue }">
													<label class="errorTips"></label>	
												</div>
											</div>
									    </div>
							        </c:when>
							        <c:otherwise>
							        
							        </c:otherwise>
							      </c:choose>

								</c:forEach>
							</c:if>

			                <div class="text-center opareBtm">
			                    <button type="submit" class="a-btn1">确定</button>
							</div>
						</form>

						
					</div>
					
					<!--end content-->
					<div class="clearfix"></div>
				</div>
			</div>

<div class="clearfix"></div>
</div>